package sire.controller;

import java.lang.reflect.ParameterizedType;

import sire.dao.BaseDAO;
import sire.ui.SireThinlet;
import sire.vo.BaseVO;

public class BaseController<E extends BaseVO> extends SireThinlet {

	private BaseDAO dao ;
	private Class entClass;

	public BaseController(String xml, SireThinlet thin, FormType type, BaseDAO daoDelegate) throws Exception {
		super(xml, thin, type);
		dao = daoDelegate;
		entClass = dao.getClassVO();
	}

	public Class getEntClass() {
		return entClass;
	}

	public BaseDAO getDao() {
		return dao;
	}

}
